'use strict';
/**
 * Created by deng on 16-1-19.
 * cooperation list
 */
angular.module('metalabPartnerApp').config(['$stateProvider', function ($stateProvider) {
    $stateProvider.state('meta.demand.list', {
        url: '/list',
        abstract: true,
        views: {
            'body@meta': {
                templateUrl: 'views/demand/list/demandList.html',
                controller: 'DemandListCtrl'
            }
        }
    }).state('meta.demand.list.all', {
        url: '?page&area&keywords',
        views: {
            'list': {
                templateUrl: 'views/demand/list/demandListAll.html',
                controller: 'DemandListAllCtrl'
            }
        },
        params: {
            page: '1'
        }
    }).state('meta.demand.list.favorite', {
        url: '/favorite?page&area&keywords',
        views: {
            'list': {
                templateUrl: 'views/demand/list/demandListFavorite.html',
                controller: 'DemandListFavoriteCtrl'
            }
        },
        params: {
            page: '1'
        }
    }).state('meta.demand.list.released', {
        url: '/released?page&area',
        views: {
            'list': {
                templateUrl: 'views/demand/list/demandListReleased.html',
                controller: 'DemandListReleasedCtrl'
            }
        },
        params: {
            page: '1'
        }
    });

}]);
